<?php

if (!function_exists('filter_html')) {
    function filter_html($str)
    {
        return mb_substr(str_replace(["\r\n", "\r", "\n"], "", strip_tags(html_entity_decode($str))), 0, 255);
    }
}
